<form name="form1" id="form1" action="" method="post" enctype="multipart/form-data">
<input type="hidden" name="itemID" value="" />
<input type="hidden" name="mode" value="" />
<input type="hidden" name="type" value="" />
<table width="100%" border="0" cellpadding="5" cellspacing="2" class="list">
<tbody>
  <tr>
    <td width="5%" align="center" class="color-tr-td"><b><span onclick="checkAll('form1', 0, 1)">Check</span> | <span onclick="uncheckAll('form1', 0, 1)">Uncheck</span></b></td>
    <td width="5%" align="center" class="color-tr-td"><b>Image</b></td>
    <td width="30%" align="center" class="color-tr-td"><b>Url</b></td>
    <td width="5%" align="center" class="color-tr-td">&nbsp;</td>
    <td width="5%" align="center" class="color-tr-td">&nbsp;</td>
    <td width="5%" align="center" class="color-tr-td"><b>DELETE</b></td>
   </tr>
   <?php if (count ($this->arrContent) > 0) {
   		$i=0;
   		foreach ($this->arrContent as $arrContent) {
   ?>
	   <tr class="<?php if ($i%2==0) echo 'blue'; else echo 'white'; ?>">
	     <td align="center"><input type="checkbox" name="checkdel[]" value="<?php echo $arrContent['id'];?>" /></td>
	     <td align="center">
	     	<img width="50" src="<?php echo FunctionCommon::getImage('img-the-min', $arrContent['code']);?>" />
	     </td>
	     <td onclick="frmSubmit('m=quangcao&a=edit<?php echo constants::$pathUrl;?>', '<?php echo $arrContent['id']; ?>', '', '')"><?php echo $arrContent['url'];?></td>
	     <td align="center"><?php if ($this->maxseq != $arrContent['seq']) :?><label onclick="frmSubmit('m=quangcao<?php echo constants::$pathUrl;?>', '<?php echo $arrContent['id']; ?>', 'up', '<?php echo $arrContent['seq']; ?>')">▲</label><?php endif;?></td>
	     <td align="center"><?php if ($this->minseq != $arrContent['seq']) :?><label onclick="frmSubmit('m=quangcao<?php echo constants::$pathUrl;?>', '<?php echo $arrContent['id']; ?>', 'down', '<?php echo $arrContent['seq']; ?>')">▼</label><?php endif;?></td>
	     <td align="center" onclick="if(cfdelete()){frmSubmit('m=quangcao<?php echo constants::$pathUrl;?>', '<?php echo $arrContent['id']; ?>', 'delete', '');}"><img src="images/default/b_usrdrop.png" /></td>
	   </tr>
   <?php 
   		$i++;
   		}
   }
   ?>
   <tr>
     <td width="5%" align="center" class="color-tr-td"><input  onclick="if(cfdelete()){frmSubmit('m=quangcao<?php echo constants::$pathUrl;?>', '', 'deleteall', '');}" type="button" name="deleteall" value="Delete All" /></td>
    <td colspan="5" align="left" class="color-tr-td"><a href="index.php?m=quangcao&a=edit<?php echo constants::$pathUrl;?>"><img src="images/default/b_add.png" border="0" width="27" /></a></td>
    </tr>
   <tr>
   		<td colspan="6" align="center"><table border="0" cellspacing="0" cellpadding="0" align="center">
				<tr>
					<td align="right">
					<?php
					if( $this->currPage > 1 ) {
						echo "<a href=index.php?m=quangcao&pageNo=".($this->currPage-1).constants::$pathUrl."><span>Prev</span></a>&nbsp;&nbsp;";
					}
					?>
					</td>
					<td align="center">
					<?php
					if ($this->numberPage > 1) {
					?>
					  <table border="0" cellpadding="0" cellspacing="0">
							<tbody>
								<tr>
									<td height="15">&nbsp;&nbsp;<?php echo $this->strPaging; ?>&nbsp;&nbsp;</td>
								</tr>
							</tbody>
						</table>
					<?php } ?>
					</td>
					<td align="left">
					<?php
					if ($this->currPage < $this->numberPage) {
						echo "&nbsp;&nbsp;<a href=index.php?m=quangcao&pageNo=".($this->currPage+1).constants::$pathUrl."><span>Next</span></a>";
					}
					?>
					</td>
				</tr>
			</table>
        </td>
   </tr>
</tbody>
</table>
</form>